<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="../../template/template.xhtml">
	<ui:define name="content">
		<div class="FORM_HEADER">User List</div>
		<h:form styleClass="APPLICATION_CONTENT">
			<h:dataTable value="#{studentController.addressDTOList}" var="address"
				styleClass="TABLE_BASIC_COMPOSITION" headerClass="TABLE_HEADER"
				rowClasses="ODD_ROW, EVEN_ROW"
				cellpadding="8">
				<h:column>
					<f:facet name="header">Id</f:facet>
					<h:outputText value="#{address.id}"/>
				</h:column>
				<h:column>
					<f:facet name="header">Address Line</f:facet>
					<h:outputText value="#{address.addressLine1}"/>
					<br></br>
					<h:outputText value="#{address.addressLine2}" />
					<br></br>
					<h:outputText value="#{address.landMark}" />
				</h:column>
				<h:column>
					<f:facet name="header">State</f:facet>
					<h:outputText value="#{address.province}" />
				</h:column>
				<h:column>
					<f:facet name="header">City</f:facet>
					<h:outputText value="#{address.city}" />
				</h:column>
				<h:column>
					<f:facet name="header">Pin Code</f:facet>
					<h:outputText value="#{address.zipCode}" />
				</h:column>
				<h:column>
					<f:facet name="header">Action</f:facet>
					<h:commandLink value="View" action="#{addressController.view}">
						<f:param name="studentId" value="#{studentDTO.id}"/>
					</h:commandLink>
					<h:outputText value=" "/>
					<h:commandLink value="Edit" action="#{addressController.edit}">
						<f:param name="studentId" value="#{student.id}"/>
					</h:commandLink>
				</h:column>
			</h:dataTable>
		</h:form>
	</ui:define>
</ui:composition>
</html>